package com.cheetah.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * Created by chrishoo on 2015/11/5.
 */
@Configuration
@ConfigurationProperties(prefix = "tcp.server")
@Data
public class ClientConfig {

    private String ip;

    private int port;

    private int boss = 1;

    private int worker = 4;

    private boolean tcpNoDelay = false;

    private boolean keepAlive = false;

    private int backlog = 1024;

    private int timeout = 1000;

    private int readTimeout = 2000;

    private int writeTimeout = 2000;

    private int handlersCount = 8;
}
